package day03;

public class OperDemo5 {
    public static void main(String[] args) {
        //字符串连接符：+
        int age = 24;
        System.out.println(age);
        System.out.println("age");
        System.out.println("age="+age);

        String name = "ww";
        System.out.println("大家好，我叫"+name);
        System.out.println("大家好，我叫" + name+"我今年" + age + "岁了");

        System.out.println(10+20+""+30);//3030
        System.out.println(""+10+20+30);//102030
        System.out.println(10+20+30+"");//60
        //一10 20都是int类型 正常加 遇到串"" String的30 后面再加就不是加法了 而是3030 同三上



    }
}
